package com.fpx.open.platform.domain.prealert;

import com.fpx.open.platform.common.util.DateUtil;
import com.fpx.open.platform.domain.ae.ContactPerson;

public class DoorPickupTR {
	
	private String co_id;
    /**
     * 旺旺Id
     */
    private String dp_wangwangId;
    /**
     * 姓名
     */
    private String dp_name;
    /**
     * 电话
     */
    private String dp_phone;
    /**
     * 手机
     */
    private String dp_mobile;
    /**
     * 邮箱
     */
    private String dp_email;
    /**
     * 国家
     */
    private String dp_country;
    /**
     * 省
     */
    private String dp_province;
    /**
     * 城市
     */
    private String dp_city;
    /**
     * 区
     */
    private String dp_district;
    /**
     * 街道
     */
    private String dp_streetAddress;
    /**
     * 邮编
     */
    private String dp_zipCode;
    /**
     * 处理状态(0:取消,1：创建,2:已联系客户,3:已安排司机,4:已提货 5:已完成(签入))
     */
    private String dp_status;
    /**
     * 创建时间
     */
    private String dp_createDate;
    /**
     * 修改时间
     */
    private String dp_modifyDate;
    /**
     * 揽收分区
     */
    private String dp_pickupZone;
    /**
     * 揽收件数
     */
    private String dp_pieces;

    public DoorPickupTR(){}
    public DoorPickupTR(ContactPerson sender) {
        initContactPerson(sender);
        this.dp_createDate = DateUtil.getCurrTime(DateUtil.DATE_FORMAT_S);
        this.dp_modifyDate = DateUtil.getCurrTime(DateUtil.DATE_FORMAT_S);
        this.dp_status = "1";
    }

    public String getDp_wangwangId() {
        return dp_wangwangId;
    }

    public void setDp_wangwangId(String dp_wangwangId) {
        this.dp_wangwangId = dp_wangwangId;
    }

    public String getDp_name() {
        return dp_name;
    }

    public void setDp_name(String dp_name) {
        this.dp_name = dp_name;
    }

    public String getDp_phone() {
        return dp_phone;
    }

    public void setDp_phone(String dp_phone) {
        this.dp_phone = dp_phone;
    }

    public String getDp_mobile() {
        return dp_mobile;
    }

    public void setDp_mobile(String dp_mobile) {
        this.dp_mobile = dp_mobile;
    }

    public String getDp_email() {
        return dp_email;
    }

    public void setDp_email(String dp_email) {
        this.dp_email = dp_email;
    }

    public String getDp_country() {
        return dp_country;
    }

    public void setDp_country(String dp_country) {
        this.dp_country = dp_country;
    }

    public String getDp_province() {
        return dp_province;
    }

    public void setDp_province(String dp_province) {
        this.dp_province = dp_province;
    }

    public String getDp_city() {
        return dp_city;
    }

    public void setDp_city(String dp_city) {
        this.dp_city = dp_city;
    }

    public String getDp_streetAddress() {
        return dp_streetAddress;
    }

    public void setDp_streetAddress(String dp_streetAddress) {
        this.dp_streetAddress = dp_streetAddress;
    }

    public String getDp_zipCode() {
        return dp_zipCode;
    }

    public void setDp_zipCode(String dp_zipCode) {
        this.dp_zipCode = dp_zipCode;
    }

    public String getDp_status() {
        return dp_status;
    }

    public void setDp_status(String dp_status) {
        this.dp_status = dp_status;
    }

    public String getDp_createDate() {
        return dp_createDate;
    }

    public void setDp_createDate(String dp_createDate) {
        this.dp_createDate = dp_createDate;
    }

    public String getDp_modifyDate() {
        return dp_modifyDate;
    }

    public void setDp_modifyDate(String dp_modifyDate) {
        this.dp_modifyDate = dp_modifyDate;
    }

    public String getDp_pickupZone() {
        return dp_pickupZone;
    }

    public void setDp_pickupZone(String dp_pickupZone) {
        this.dp_pickupZone = dp_pickupZone;
    }

    public String getDp_pieces() {
        return dp_pieces;
    }

    public void setDp_pieces(String dp_pieces) {
        this.dp_pieces = dp_pieces;
    }
    public String getDp_district() {
        return dp_district;
    }

    public void setDp_district(String dp_district) {
        this.dp_district = dp_district;
    }

    public void initContactPerson(ContactPerson sender) {
        if (sender != null) {
            this.dp_wangwangId = sender.getWangwangId();
            this.dp_city = sender.getCity();
            this.dp_country = sender.getCountry();
            this.dp_email = sender.getEmail();
            this.dp_mobile = sender.getMobile();
            this.dp_name = sender.getName();
            this.dp_phone = sender.getPhone();
            this.dp_province = sender.getProvince();
            this.dp_district = sender.getDistrict();
            this.dp_streetAddress = sender.getStreetAddress();
            this.dp_zipCode = sender.getZipCode();
        }

    }

	/**
	 * @return the co_id
	 */
	public String getCo_id() {
		return co_id;
	}

	/**
	 * @param co_id the co_id to set
	 */
	public void setCo_id(String co_id) {
		this.co_id = co_id;
	}

}
